package com.example.peibei.ui.adapter;

import android.widget.ImageView;

import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.dingtao.common.bean.VipRight;
import com.example.peibei.R;

public class MemberAdapter extends BaseQuickAdapter<VipRight,BaseViewHolder> {

    public MemberAdapter() {
        super(R.layout.item_member);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, VipRight vipRight) {

        baseViewHolder.setText(R.id.tv_text,vipRight.getRights());
        ImageView iv = baseViewHolder.getView(R.id.img_iv);
        Glide.with(getContext()).load(vipRight.getIcon()).into(iv);
    }
}
